package com.sky.controller.user;

import com.alibaba.fastjson.JSONObject;
import com.sky.entity.Orders;
import com.sky.mapper.OrderMapper;
import com.sky.result.Result;
import com.sky.service.OrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author iTaotao
 * @version 1.0
 * @Description
 * @createTime 2023年08月04日 15:18:00
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/notification")
public class NotificationPayController {
    private final OrderService orderService;
    private final OrderMapper orderMapper;
    /**
     * 付款通知
     *
     * @param number 数量
     * @return {@link Result}<{@link ?}>
     */
    @GetMapping("/paySuccess")
    public Result<?> payNotification(String number) {
        orderService.payNotification(number);


        return Result.success();
    }
}
